package com.msw.rest.bean.rsp;

/**
 * TODO：一句话描述类的含义
 *
 * @Author hadoop
 * @Date 2016/4/10.
 */

public class ErrorRsp {
    /**
     * 自定义的错误码
     */
    private int errorCode;

    /**
     * 错误内容
     */
    private String errorMsg;

    public ErrorRsp()
    {

    }

    public ErrorRsp(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    @Override
    public String toString() {
        return "ErrorRsp{" +
            "errorCode=" + errorCode +
            ", errorMsg='" + errorMsg + '\'' +
            '}';
    }
}
